package top.skihub.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;
import top.skihub.pojo.Goods;

import java.util.List;

@Service
@Mapper
public interface AddGoodsMapper {
    /**
     * 添加商品
     *
    **/
    @Insert("insert into goods(goods_img,goods_name,goods_type,start_time,end_time,goods_desc,business_info,goods_enter_time,price) values(#{goodsImg},#{goodsName},#{goodsType},#{startTime},#{endTime},#{goodsDesc},#{businessInfo},#{goodsEnterTime1},#{price});")
    void insert(Goods goods);

}
